<?php
declare (strict_types = 1);

namespace app\controller;

use app\exception\Fail;
use app\exception\Succ;
use app\lib\token\JwtToken;
use app\lib\token\Token;
use app\lib\token\UserToken;
use app\lib\Tools;


class Test {

    public function lang(){
        throw new Fail("没了", 3);
    }

    public function jwtGrant()
    {
        $jwt = JwtToken::grant(['uid'=> 1]);
        throw new Succ($jwt);
    }

    public function jwtPass()
    {
        $vars = JwtToken::getValues();
        throw new Succ($vars);
    }
}
